package org.example.demo15_command.demo1;

import org.example.demo15_command.demo1.*;



public class Client {
    public static void main(String[] args) {
        AbstractCommand openCommand,closeCommand;
        openCommand = new FanOpenCommand();
        closeCommand = new FanCloseCommand();
        Controller controller = new Controller(openCommand,closeCommand);
        controller.close();
        controller.open();

        AbstractCommand openCommand1 = new LightOpenCommand();
        AbstractCommand closeCommand1 = new LightCloseCommand();
        Controller controller1= new Controller(openCommand1,closeCommand1);
        controller1.open();
        controller1.close();
    }

}
